package com.dailyblue.java.thread;

public class DemoD extends Thread {

    private DemoD1 d1;

    public DemoD(DemoD1 d1) {
        this.d1 = d1;
    }

    @Override
    public void run() {
        for (int i = 1; i < 10; i++) {
            d1.change();
        }
    }
}
